package io.renren.modules.ledger.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

/**
 * 账本记录
 * @Author lililiang
 * @Date 2021-01-10 22:10:02
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel("账本记录实体")
@TableName("ld_record")
public class RecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("id")
	@TableId
	private String id;
	@ApiModelProperty("记录金额")
	private BigDecimal money;
	@ApiModelProperty("备注")
	private String remark;
	@ApiModelProperty("记录时间")
	private Date time;
	@ApiModelProperty("类型，0支出，1收入")
	private Integer type;
	@ApiModelProperty("收支类型编码")
	private String typeCode;
	@ApiModelProperty("收支类型图标")
	private String typeIcon;
	@ApiModelProperty("收支类型名称")
	private String typeName;
	@ApiModelProperty("用户id")
	private String userId;
	@ApiModelProperty("创建人")
	private Integer author;
	@ApiModelProperty("创建时间")
	private Date createTime;
	@ApiModelProperty("更新人")
	private Integer modifier;
	@ApiModelProperty("更新时间")
	private Date modifyTime;
	@ApiModelProperty("状态,1正常，0无效，-1删除")
	private Integer status;

	@TableField(exist = false)
	private String log;


}
